$(function() {
    /**
     * 滚动触发css3动画
     */
    window.sr = new scrollReveal();

    /**
     * 轮播
     */
    $("#j-slider").owlCarousel({
        pagination: true,
        slideSpeed: 1000,
        autoPlay: 3000,
        paginationSpeed: 400,
        singleItem: true,
        lazyLoad: true,
        'transitionStyle': "fade"
    });


    $.lazyLoadXT.onload = function() {
        var $el = $(this);
        $el.removeClass('lazy-hidden').addClass('animated ' + $el.attr('data-effect'));
    };

});